<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BaseModel extends Model
{
    public function getCreatedAtAttribute($date)
    {
        return $date ? date('Y-m-d H:i:s') : '';
    }
}

